package com.reny.ll.git.base_logic.api

import com.reny.ll.git.base_logic.model.BeanWrap
import com.reny.ll.git.base_logic.model.login.LoginInfo
import okhttp3.RequestBody
import retrofit2.Response
import retrofit2.http.Body
import retrofit2.http.POST

const val root_path_v1 = "api/v1/"

interface ApiInterface {

    //发送验证码
    @POST("${root_path_v1}verificationCodes")
    suspend fun sendCode(@Body body: RequestBody?): Response<BeanWrap<Any>>

    @POST("${root_path_v1}authorizations")
    suspend fun login(@Body body: RequestBody?): Response<BeanWrap<LoginInfo>>

}